
//******************************************************************
//  Temperature.java        Author:GK
//
//  根据整型变量temperature的值来输出信息。
//******************************************************************
import java.util.Scanner;

public class Temperature {
    public static void main(String[] args) {
        int temp;
        Scanner scan = new Scanner(System.in);

        System.out.println("请输入温度值： ");
        temp = scan.nextInt();

        if (temp > 50)
            if (temp > 80) {
                System.out.println("It's warm");
                System.out.println("Dress coolly");
            }
            else {
                System.out.println("It's pleasant");
                System.out.println("Dress pleasantly");
            }
        else {
            System.out.println("It's cool");
            System.out.println("Dress warmly");
              }
        }
    }
